//
// Created by lin on 8/25/2021.
//

#include "checkcustom.h"
#include "iostream"

#include "settings.h"
#include "symboldatabase.h"
#include "tokenize.h"

namespace {
    CheckCustom instance;
}

// CWE ids used:
static const struct CWE CWE_CUSTOM(888U);   // Signed to Unsigned Conversion Error

void CheckCustom::checkCustomException() {

    std::cout << "enter custom check point" << std::endl;

    customError();

}

void CheckCustom::customError() {
    reportError(nullptr,
                Severity::style,
                "Custom Exception",
                "Custom",
                CWE_CUSTOM,
                Certainty::normal);
}